import { UploadType } from "@/_gx/TsEnums";
import ConfigBase from "@/_gx/_Base/ConfigBase";

document.title = import.meta.env.VITE_TITLE;

class ConfigExt extends ConfigBase {
    /**
     * 定义上传类型
     */
    public static readonly _UPLOAD_TYPE: UploadType = (import.meta.env.VITE_UPLOAD_TYPE as string) == "qiniu" ? UploadType.Qiniu : UploadType.Local;

    /**
     * cookie的Domain
     */
    public static readonly _COOKIE_DOMAIN: string = import.meta.env.VITE_COOKIE_DOMAIN as string;

    public static readonly _DATAV_URL: string = import.meta.env.VITE_DATAV_URL as string;
}

export default ConfigExt;
